<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * Copyright (C) 2007  Robert Moss
 *  
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 * 
 * This file is part of JoomLeague.
 *  
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/ 

?>

<?php $jl_v = new JoomLeagueVersion();
$joomleague_version = $jl_v->version;?>

<link href="<?php echo $mosConfig_live_site;?>/administrator/components/com_joomleague/css/joomleague.css" rel="stylesheet" type="text/css" />
<div id="content-pad">

<!-- Sidebar -->
	<div id="stepbar">
    <div class="t">
      <div class="t">
        <div class="t"></div>
      </div>
    </div>
    <div class="m" align="left">
    	<h1><!--<img align="left" src="../administrator/components/com_joomleague/images/blank_green.png">&nbsp;--><?php echo _JL_ADMIN_VIEW_DATA;?></h1>
  		<!--<div class="step-off">
	  		<a href="index2.php?option=com_joomleague&act=leagues">Ligen</a>
		  </div>
			<div class="step-off">
			  <a href="index2.php?option=com_joomleague&act=seasons">Saisons</a>
			</div>-->
  		<div class="step-off">
			<img src="components/com_joomleague/images/projects.png" alt="<?php echo _JL_ADMIN_VIEW_PROJECTS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague"><?php echo _JL_ADMIN_VIEW_PROJECTS;?></a>  		
		  </div>			
			<div class="step-off">
			<img src="components/com_joomleague/images/clubs.png" alt="<?php echo _JL_ADMIN_VIEW_CLUBS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=clubs"><?php echo _JL_ADMIN_VIEW_CLUBS;?></a>			
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/teams.png" alt="<?php echo _JL_ADMIN_VIEW_TEAMS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=teams"><?php echo _JL_ADMIN_VIEW_TEAMS;?></a>			
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/players.png" alt="<?php echo _JL_ADMIN_VIEW_PLAYERS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=players"><?php echo _JL_ADMIN_VIEW_PLAYERS;?></a>			
			</div>			
			<div class="step-off">
			<img src="components/com_joomleague/images/positions.png" alt="<?php echo _JL_ADMIN_VIEW_POSITIONS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=positions"><?php echo _JL_ADMIN_VIEW_POSITIONS;?></a>			
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/events.png" alt="<?php echo _JL_ADMIN_VIEW_EVENTS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=eventtypes"><?php echo _JL_ADMIN_VIEW_EVENTS;?></a>			
			</div>
      <div class="step-off">
			<img src="components/com_joomleague/images/playground.png" alt="<?php echo _JL_ADMIN_VIEW_PLAYGROUNDS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=playgrounds"><?php echo _JL_ADMIN_VIEW_PLAYGROUNDS;?></a>      
			</div>			
      <div class="step-off">
			<img src="components/com_joomleague/images/referee.png" alt="<?php echo _JL_ADMIN_VIEW_REFEREES;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=referees"><?php echo _JL_ADMIN_VIEW_REFEREES;?></a>      
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/world.png" alt="<?php echo _JL_ADMIN_EDIT_LIST_COUNTRIES;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=countries"><?php echo _JL_ADMIN_EDIT_LIST_COUNTRIES;?></a>      
			</div>			
   </div>
<!-- Query if project is used, then show Details -->  	
<?php if(isset($project) && is_a($project, 'JoomLeague')){ ?>  	
  	<div class="m" align="left">
  		<h1><!--<img align="left" src="../administrator/components/com_joomleague/images/blank_yellow.png">&nbsp;-->
      <?php if (strlen($project->name) >= 28) {$projectname = substr($project->name,0,28)."...";}
      else $projectname = $project->name;
      echo $projectname; ?></h1>
      <div class="step-off">
			<img src="components/com_joomleague/images/templates.png" alt="<?php echo "Templates";?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=template_config"><?php echo "Templates";?></a>			
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/teams.png" alt="<?php echo _JL_ADMIN_VIEW_TEAMS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=teamtool"><?php echo _JL_ADMIN_VIEW_TEAMS;?></a>			
			</div>
			<?php
        if ($project->project_type=='DIVISIONS_LEAGUE') {
			?>
			<div class="step-off">
			<img src="components/com_joomleague/images/teams.png" alt="<?php echo _JL_ADMIN_VIEW_DIVISION;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=divisions"><?php echo _JL_ADMIN_VIEW_DIVISIONS;?></a>			
			</div>
			<?php
			}
			?>
			<div class="step-off">
			<img src="components/com_joomleague/images/calendar.png" alt="<?php echo _JL_ADMIN_VIEW_MATCHDAYS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=rounds"><?php echo _JL_ADMIN_VIEW_MATCHDAYS;?></a>			
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/matches.png" alt="<?php echo _JL_ADMIN_VIEW_MATCH_DETAILS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=matches"><?php echo _JL_ADMIN_VIEW_MATCH_DETAILS;?></a>			
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/link.png" alt="<?php echo _JL_ADMIN_VIEW_FRONTEND_LINKS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=frontend"><?php echo _JL_ADMIN_VIEW_FRONTEND_LINKS;?></a>			
			</div>
  	</div>
<?php } ?>
<!-- Query if Team is used, then show Details -->  	          
<?php if(isset($team) && is_a($team, 'JL_Team')){ ?>
    <div class="m" align="left">
			<h1><!--<img align="left" src="../administrator/components/com_joomleague/images/blank_blue.png">&nbsp;-->
      <?php if (strlen($team->name) >= 28) {$teamname = substr($team->name,0,28)."...";}
      else $teamname = $team->name;
      echo $teamname; ?></h1>
      	<div class="step-off">
			<img src="components/com_joomleague/images/player.png" alt="<?php echo _JL_ADMIN_VIEW_PLAYER_DETAILS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=playertool"><?php echo _JL_ADMIN_VIEW_PLAYER_DETAILS;?></a>      	
			</div>
  	</div>
<?php } ?>
    <div class="m" align="left">
			<h1><!--<img align="left" src="../administrator/components/com_joomleague/images/blank_red.png">&nbsp;--><?php echo _JL_ADMIN_VIEW_MAINTENANCE;?></h1>			
			<div class="step-off">
			 	<img src="components/com_joomleague/images/user_edit.png" alt="<?php echo _JL_ADMIN_VIEW_TIPGAME_USERS;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=tips"><?php echo _JL_ADMIN_VIEW_TIPGAME_USERS;?></a>
			</div>
<!--			<div class="step-off">
			 	<a href="index2.php?option=com_joomleague&act=import"><?php # echo _JL_ADMIN_VIEW_FB_IMPORT;?></a>
			</div> -->          
			<div class="step-off">
			<img src="components/com_joomleague/images/import.png" alt="<?php echo _JL_ADMIN_VIEW_JL_IMPORT;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=import"><?php echo _JL_ADMIN_VIEW_JL_IMPORT;?></a>
			</div>
      <div class="step-off">
			<img src="components/com_joomleague/images/import.png" alt="<?php echo _JL_ADMIN_VIEW_JL_IMPORT."V2";?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=JLimport"><?php echo _JL_ADMIN_VIEW_JL_IMPORT."V2";?></a>
			</div>
			<div class="step-off">
      <img src="components/com_joomleague/images/import.png" alt="<?php echo _JL_ADMIN_VIEW_JL_EXPORT." v2";?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=JLexport"><?php echo _JL_ADMIN_VIEW_JL_EXPORT;?></a>
			</div>   
			<div class="step-off">
			<img src="components/com_joomleague/images/import.png" alt="<?php echo _JL_ADMIN_VIEW_LMO_IMPORT;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=LMOimport"><?php echo _JL_ADMIN_VIEW_LMO_IMPORT;?></a>
			</div>
			<div class="step-off">
			<img src="components/com_joomleague/images/update.png" alt="<?php echo _JL_ADMIN_VIEW_UPDATES;?>">&nbsp;&nbsp;<a href="index2.php?option=com_joomleague&act=updates"><?php echo _JL_ADMIN_VIEW_UPDATES;?></a>
			</div>      			
  	</div>  	
    <div class="m" align="center">
      <div class="box"></div> JoomLeague - <?php echo $jl_v->version;?>
  	</div>  	
    <div class="b">
      <div class="b">
        <div class="b"></div>
      </div>
    </div>
  </div>
<!-- Content START -->  

<!-- Load Content -->
<?php require_once $view; ?>
<!-- Content END -->		
		
</div>
	<div id="footer1">
		<div id="footer2"></div>
	</div>
